# Contributor: Paul Bredbury <brebs@sent.com>
pkgname=cherrytree
pkgver=0.38.8
pkgrel=0
pkgdesc="Hierarchical note-taking app featuring rich text"
url="https://www.giuspen.com/cherrytree/"
arch="noarch"
license="GPL-3.0-or-later"
depends="py-dbus py-gtk py-pygtksourceview2"
makedepends="gettext"
subpackages="$pkgname-doc $pkgname-lang"
source="https://www.giuspen.com/software/$pkgname-$pkgver.tar.xz
	update-desktop-database-removal.patch"
options="!check" # No test suite
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0ba188c93ce8c3eee73f7c8622872305df95c2c545d1bfd486af744229d6edc166ac6a9e10621d059a245d01b5458ad6dd8efdfdb9265cef0028f2426cfd1f72  cherrytree-0.38.8.tar.xz
d56dbb037c9205d038892bd4d7fd48ff4406162a1114ab7b9991b76f974fb683e1d3ddc3bfaa37214269c032c2908ec00e5ad17e2c6439a280eff8881e291428  update-desktop-database-removal.patch"
